#include "base/LogStream.h"
#include "base/Logger.h"
#include <thread>

using namespace tmms::base;

void TestLog()
{
    LOG_TRACE<< " test trace!!! " ; 
    LOG_DEBUG << " test debug!!! " ; 
    LOG_INFO << " test info!!!";
    LOG_WARN << " test warn!!!";
    LOG_ERROR << " test error!!!";
}

int main(int argc,const char ** argv)
{
    tmms::base::g_logger = new Logger();
    tmms::base::g_logger->SetLogLevel(kTrace);

    TestLog();
    while(1)
    {
        std::this_thread::sleep_for(std::chrono::milliseconds(50));
    }    
    return 0;
}